package com.chen.demo.simple.command;

import com.chen.winnerframework.cqrs.command.Command;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class BookUpdateCommand implements Command {
    @NotNull(message = "图书id不能为空")
    private Integer id;
    @NotBlank(message = "图书名称不能为空")
    private String name;
    @NotNull(message = "图书版本号不能为空")
    private Integer version;
}
